<%@ page language="java" contentType="text/html; charset=UTF-8"
   pageEncoding="UTF-8"%>
<%@ page import ="ssi.tools.ShowAnimals" %>
<%@ page import ="ssi.beans.User" %>
<%@ page import ="java.util.ArrayList;" %>
<h2>Ulubione zwierzaki</h2>
<table>
	<%
		User user = (User) session.getAttribute("user");
		ArrayList<String> lista = ShowAnimals.showFavourites(user.getId());
		for(int k=0; k<lista.size();k++){%>
			<%=lista.get(k) %>
		<%}
	%>
	</table>